﻿using System.ComponentModel.DataAnnotations.Schema;

namespace MeetingAssistant.Component.Data.Configurations.Member
{
    internal partial class UserConfiguration
    {
        partial void UserConfigurationAppend()
        {
            this.HasKey(c => c.Id);
            this.Property(c => c.UserName).HasMaxLength(20);
            this.Property(c => c.Password).HasMaxLength(50);
            this.Property(c => c.TrueName).HasMaxLength(20);
            this.Property(c => c.IdentityNumber).HasMaxLength(18);
            this.Property(c => c.Email).HasMaxLength(50);
            this.Property(c => c.Phone).HasMaxLength(13);
            this.Property(c => c.Address).HasMaxLength(150);
            this.Property(c => c.Department).HasMaxLength(20);
            
            this.Property(t => t.Id).HasColumnName("Id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
        }
    }

}
